package com.pay.ioopos;

public class DataStoreExample implements DataStore {
    private static PayMode mode = PayMode.NORMAL;
    private static String maxAmount = "1000.00";
    private static String fixedAmount = "0.10";
    private static String pwd = "000000";
    private static String transKey = "awSomKKAj0yYu1p9ILepVtyz3YGJATFB";
    private static String serverUrl = "https://pay.yunban.com";
    @Override
    public void setMode(PayMode mode) {
        DataStoreExample.mode = mode;
    }

    @Override
    public PayMode getMode() {
        return DataStoreExample.mode;
    }

    @Override
    public void setMaxAmount(String amount) {
        DataStoreExample.maxAmount = amount;
    }

    @Override
    public String getMaxAmount() {
        return DataStoreExample.maxAmount;
    }

    @Override
    public void setFixAmount(String fixedAmount) {
        DataStoreExample.fixedAmount = fixedAmount;
    }

    @Override
    public String getFixAmount() {
        return DataStoreExample.fixedAmount;
    }

    @Override
    public void setPwd(String pwd) {
        DataStoreExample.pwd = pwd;
    }

    @Override
    public String getPwd() {
        return DataStoreExample.pwd;
    }

    @Override
    public void setTransKey(String transKey) {
        DataStoreExample.transKey = transKey;
    }

    @Override
    public String getTransKey() {
        return transKey;
    }

    @Override
    public void setServerUrl(String serverUrl) {
        DataStoreExample.serverUrl = serverUrl;
    }

    @Override
    public String getServerUrl() {
        return serverUrl;
    }
}
